import request from '@/utils/request'

// 分页查询学生信息
export function getList(params, page, limit) {
  return request({
    url: '/student/list/' + page + '/' + limit,
    method: 'get',
    params
  })
}

// 删除学生信息
export function deleteStudent(id) {
  return request({
    url: `/student/remove/${id}`,
    method: 'post'
  })
}

// 根据id查询单个学生信息
export function getStudentInfo(params) {
  return request({
    url: `/student/selectById`,
    method: 'get',
    params
  })
}

export function modifyStudent(obj) {
  return request({
    url: `/student/modify`,
    method: 'post',
    data: obj
  })
}

export function addStudent(obj) {
  return request({
    url: `/student/add`,
    method: 'post',
    data: obj
  })
}

